﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Data;
using System.Configuration;
using System.Collections;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace SvOtchet.controls
{
    public partial class ReportsByYear : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            /*
            if (myyear.Value == null)
            {
                // отпределяем текущий год и присваиваем выпадающему списку
                DateTime date = new DateTime();
                date = DateTime.Now;
                myyear.Value = Convert.ToInt32(date.Year);
               
            }
            */
        }
        // экспорт
        protected void btnXlsExport_Click(object sender, EventArgs e)
        {
            this.gridExport.WriteXlsToResponse();
        }

        protected void grid_CustomCallback(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewCustomCallbackEventArgs e)
        {
            ASPxGridView1.DataBind();
        }

    }
}